home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: actuary@nando.net (Bill McCarthy)
- Newsgroups: comp.lang.c
- Subject: Re: command line argument help
- Date: 30 Jan 1996 21:58:26 GMT
- Organization: News & Observer Public Access
- Message-ID: <4em4a2$eta@castle.nando.net>
- References: <4edfth$ok@muss.CIS.McMaster.CA> <4egi4nINNncr@keats.ugrad.cs.ubc.ca> <4eikbc$cs9@host-3.cyberhighway.net> <4elm4f$c73@airdmhor.gen.nz>
- Reply-To: actuary@nando.net (Bill McCarthy)
- NNTP-Posting-Host: grail715.nando.net
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <4elm4f$c73@airdmhor.gen.nz>, gumboot@airdmhor.gen.nz (Simon Hosie) writes:
- >mjellis@cyberhighway.net:
- >> void main(int argc, char *argv[])
- > ^^^^
- > This intrigues me.. what compiler are you using to not get told off for
- >that? I'm using Watcom C, Borland C, and GCC.
-
- Of course, "void main()" is not ANSI C. However, I use those same three
- compilers under Warp. Borland not only complains, it issues an error.
- Watcom gave no warning (/l=os2v2 /d2 /w4 /zp4 /zq are my test options),
- but that's not surprising to me -- since Watcom's sample code regularly
- uses "void main()" in the library function examples. I was surprised the
- GCC gave no warning with my test options (-ansi -pedantic -Wall -ggdb
- -O0).
-
- I'm curious, please email (before the flames begin for being off topic)
- your compiler options which give error messages under GCC & Watcom
- for code such as:
-
- #include <stdio.h>
- void main( void ) { puts( "Hello, World!" ); }
-
- Bill McCarthy
- actuary@nando.net
- Wendell, NC USA
-
-